<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML>
<html>
<head>
<base href="<%=basePath%>">

<title>顶新审批</title>
<link rel="stylesheet" href="css/vivo.css">
<link rel="stylesheet" href="css/bootstrap.css">
<link rel="stylesheet" href="js/bootstrap2/css/bootstrap.min.css">
<link rel="stylesheet" href="js/bootstrap2/css/bootstrap-table.css">
<link rel="stylesheet" href="css/common.css">
<link href="js/select2/select2.min.css" type="text/css" rel="stylesheet" />
<link rel="stylesheet" type="text/css" href="js/webuploader-0.1.5/webuploader.css" />

<script src="js/jquery-1.11.1.js"></script>
<script src="js/bootstrap2/js/bootstrap.min.js"></script>

<script src="js/bootstrap2/js/bootstrap-table.js"></script>
<script src="js/bootstrap2/js/bootstrap-table-zh-CN.js"></script>
<script src="js/select2/select2.min.js"></script>
<script type="text/javascript" src="<%=basePath%>js/My97DatePicker/WdatePicker.js"></script> 
<script type="text/javascript" src="js/webuploader-0.1.5/webuploader.js"></script>
<script type="text/javascript" src="js/layui-v2.1.5/layui/layui.all.js"></script> 
<script type="text/javascript" src="js/sharefunction.js"></script> 
<script type="text/javascript" src="js/form.js"></script> 
<!-- 图片放大 -->
<script src="js/postbird-img-glass/postbird-img-glass.js" ></script>
<style type="text/css">
.main-top tr {
	height: 35px;
}
.leftt {
	text-align: center;width: 80px
}
.neirong {
	width: 220px;
}
input[type="search"], input[type="text"] {
	height: 30px;margin-bottom: 0px;width: 200px
}
.mingcheng {
	display: -moz-inline-box;display: inline-block;width: 100px;
}
.select2-container .select2-selection--single {
	height: 30px
}
</style>
<script type="text/javascript">
	$(function() {
		//禁用表单
		hideButton();
		//根据房间类型隐藏字段值
		hideColumn('${roof.roomType}');
		//附件赋值
		getFiles();
		//悬浮提示
		toolTip();
		//修改字段标记记录变量
		<c:set var="marks" value="原数据"/>
	});
	function save(opt){
		var url = "decorationProof/disposeRoof";
		var apId = '${requestScope.apId }';
		var exDataId = '${exDataId}';
		var approvalRemark = $("textarea[name='approvalRemark']").val();
		var formData = {
				exDataId:exDataId,
	        	opt:opt,
	        	apId:apId,
	        	approvalRemark:approvalRemark
	    };
		disposeSave(opt,url,formData);
	}
	
</script>
</head>

<body>
<div class="contentt">
	<form class="cmxform" id="decorationProofAddForm" method="post">
		<div class="top" style="border-bottom: 1px solid gray;height: 35px;margin-bottom: 15px">
			<span class="style_btn" style="width:100px;">顶</span>
			<span style="width: 60px;margin-left:37px;height:30px;line-height:30px;">房屋类型</span>
			<span style="width:60px;height:30px;margin-left:10px;line-height:30px;">
				<select name="roomType" id="roomType" style="width:80px">
					<option value="${roof.roomType}" selected="selected">${roof.roomType}</option>
				</select>
			</span>
		</div>
		<div class="main-top">
			<div style="width: 100%;">
				<table width="100%">
					<tr>
						<td class="leftt"><span class="style_btn"
							style="width:100px;">照明</span></td>
						<td width="360"><input type="text" name="illumination" id="illumination" value="${roof.illumination }">
							<c:if test="${not empty requestScope.map.illumination }"><span class="toolTip mark-msg"data-tip="${requestScope.map.illumination }">
								<c:out value="${marks}"/></span>
							</c:if>
							<c:if test="${requestScope.map.illumination=='' }"><span class="toolTip mark-msg"data-tip="空">
								<c:out value="${marks}"/></span>
							</c:if>
							<!-- 照明 上传按钮 -->
	    					<div id='filePicker_illumination' style="display:none">上传</div>
						</td>
						<td class="leftt cantingHide"><span class="style_btn"
							style="width:100px;">喷淋</span></td>
						<td class=" cantingHide" width="360"><input type="text" name="spray" id="spray" value="${roof.spray }">
							<c:if test="${not empty requestScope.map.spray }"><span class="toolTip mark-msg"data-tip="${requestScope.map.spray }">
								<c:out value="${marks}"/></span>
							</c:if>
							<c:if test="${requestScope.map.spray=='' }"><span class="toolTip mark-msg"data-tip="空">
								<c:out value="${marks}"/></span>
							</c:if>
							<!-- 喷淋 上传按钮 -->
	    					<div id='filePicker_spray' style="display:none">上传</div>
						</td>
					</tr>
					<tr class="yangtaiHide">
						<td colspan="2" width="50%">
							<!-- 附件上传 照明。。。-->
							<!-- 缩略图容器 -->
	    					<div id='list_illumination'></div>
						</td>
						<td colspan="2" width="50%">
							<!-- 附件上传 喷淋。。。-->
							<!-- 缩略图容器 -->
	    					<div id='list_spray'></div>
						</td>
					</tr>
					<tr class="xuanguanHide weishengjianHide yangtaiHide">
						<td class="leftt"><span class="style_btn"
							style="width:100px;">新风出口</span></td>
						<td><input type="text" name="windExit" id="windExit" value="${roof.windExit }">
							<c:if test="${not empty requestScope.map.windExit }"><span class="toolTip mark-msg"data-tip="${requestScope.map.windExit }">
								<c:out value="${marks}"/></span>
							</c:if>
							<c:if test="${requestScope.map.windExit=='' }"><span class="toolTip mark-msg"data-tip="空">
								<c:out value="${marks}"/></span>
							</c:if>
							<!--新风出口 上传按钮 -->
	    					<div id='filePicker_windExit' style="display:none">上传</div>
						</td>
						<td class="leftt"><span class="style_btn"
							style="width:100px;">回风口</span></td>
						<td><input type="text" name="returnWindExit" id="returnWindExit" value="${roof.returnWindExit }">
							<c:if test="${not empty requestScope.map.returnWindExit }"><span class="toolTip mark-msg"data-tip="${requestScope.map.returnWindExit }">
								<c:out value="${marks}"/></span>
							</c:if>
							<c:if test="${requestScope.map.returnWindExit=='' }"><span class="toolTip mark-msg"data-tip="空">
								<c:out value="${marks}"/></span>
							</c:if>
							<!--回风口 上传按钮 -->
	    					<div id='filePicker_returnWindExit' style="display:none">上传</div>
						</td>
					</tr>
					<tr>
						<td colspan="2">
							<!-- 附件上传 新风出口。。。-->
							<!-- 缩略图容器 -->
	    					<div id='list_windExit'></div>
						</td>
						<td colspan="2">
							<!-- 附件上传 回风口。。。-->
							<!-- 缩略图容器 -->
	    					<div id='list_returnWindExit'></div>
						</td>
					</tr>
					<tr>
						<td class="leftt xuanguanHide qijushiHide cantingHide chufangHide chuwujianHide yangtaiHide"><span class="style_btn"
							style="width:100px;">排风口</span></td>
						<td class="xuanguanHide qijushiHide cantingHide chufangHide chuwujianHide yangtaiHide">
							<input type="text" name="airOutlet" id="airOutlet" value="${roof.airOutlet }">
							<c:if test="${not empty requestScope.map.airOutlet }"><span class="toolTip mark-msg"data-tip="${requestScope.map.airOutlet }">
								<c:out value="${marks}"/></span>
							</c:if>
							<c:if test="${requestScope.map.airOutlet=='' }"><span class="toolTip mark-msg"data-tip="空">
								<c:out value="${marks}"/></span>
							</c:if>
							<!--排风口 上传按钮 -->
	    					<div id='filePicker_airOutlet' style="display:none">上传</div>
						</td>
						
						<td class="leftt"><span class="style_btn" style="width:100px;">装饰材料</span></td>
						<td><input type="text" name="decorateMaterials" id="decorateMaterials"  value="${roof.decorateMaterials }">
							<c:if test="${not empty requestScope.map.decorateMaterials }"><span class="toolTip mark-msg"data-tip="${requestScope.map.decorateMaterials }">
								<c:out value="${marks}"/></span>
							</c:if>
							<c:if test="${requestScope.map.decorateMaterials=='' }"><span class="toolTip mark-msg"data-tip="空">
								<c:out value="${marks}"/></span>
							</c:if>
							<!--装饰材料 上传按钮 -->
	    					<div id='filePicker_decorateMaterials' style="display:none">上传</div>
						</td>

					</tr>
					<tr>
					<td colspan="2" class="xuanguanHide qijushiHide cantingHide chufangHide chuwujianHide yangtaiHide" >
							<!-- 附件上传 排风口 。。。-->
							<!-- 缩略图容器 -->
	    					<div id='list_airOutlet'></div>
						</td>
						<td colspan="2">
							<!-- 附件上传 装饰材料。。。-->
							<!-- 缩略图容器 -->
	    					<div id='list_decorateMaterials'></div>
						</td>
						
					</tr>
					<tr>
						<td class="leftt"><span class="style_btn"
							style="width:100px;">消防探测</span></td>
						<td></td>

					</tr>

					<tr>
						<td class="leftt">烟雾探测器</td>
						<td><input type="text" name="smogDetector" id="smogDetector" value="${roof.smogDetector }">
							<c:if test="${not empty requestScope.map.smogDetector }"><span class="toolTip mark-msg"data-tip="${requestScope.map.smogDetector }">
								<c:out value="${marks}"/></span>
							</c:if>
							<c:if test="${requestScope.map.smogDetector=='' }"><span class="toolTip mark-msg"data-tip="空">
								<c:out value="${marks}"/></span>
							</c:if>
							<!--烟雾探测器 上传按钮 -->
	    					<div id='filePicker_smogDetector' style="display:none">上传</div
						</td>
						<td class="leftt">温度探测器</td>
						<td><input type="text" name="tempDetector" id="tempDetector" value="${roof.tempDetector }">
							<c:if test="${not empty requestScope.map.tempDetector }"><span class="toolTip mark-msg"data-tip="${requestScope.map.tempDetector }">
								<c:out value="${marks}"/></span>
							</c:if>
							<c:if test="${requestScope.map.tempDetector=='' }"><span class="toolTip mark-msg"data-tip="空">
								<c:out value="${marks}"/></span>
							</c:if>
							<!--温度探测器  上传按钮 -->
	    					<div id='filePicker_tempDetector' style="display:none">上传</div>
						</td>
					</tr>
					<tr>
						<td colspan="2">
							<!-- 附件上传 烟雾探测器。。。-->
							<!-- 缩略图容器 -->
	    					<div id='list_smogDetector'></div>
						</td>
						<td colspan="2">
							<!-- 附件上传温度探测器。。。-->
							<!-- 缩略图容器 -->
	    					<div id='list_tempDetector'></div>
						</td>
					</tr>
					<tr>
						<td class="leftt">红外探测器</td>
						<td><input type="text" name="infraredDetector" id="infraredDetector" value="${roof.infraredDetector }">
							<c:if test="${not empty requestScope.map.infraredDetector }"><span class="toolTip mark-msg"data-tip="${requestScope.map.infraredDetector }">
								<c:out value="${marks}"/></span>
							</c:if>
							<c:if test="${requestScope.map.infraredDetector=='' }"><span class="toolTip mark-msg"data-tip="空">
								<c:out value="${marks}"/></span>
							</c:if>
							<!--红外探测器  上传按钮 -->
	    					<div id='filePicker_infraredDetector' style="display:none">上传</div>
						</td>
						<td class="leftt">复合探测器</td>
						<td><input type="text" name="mixtureDetector" id="mixtureDetector" value="${roof.mixtureDetector }">
							<c:if test="${not empty requestScope.map.mixtureDetector }"><span class="toolTip mark-msg"data-tip="${requestScope.map.mixtureDetector }">
								<c:out value="${marks}"/></span>
							</c:if>
							<c:if test="${requestScope.map.mixtureDetector=='' }"><span class="toolTip mark-msg"data-tip="空">
								<c:out value="${marks}"/></span>
							</c:if>
							<!-- 上传按钮 -->
	    					<div id='filePicker_mixtureDetector' style="display:none">上传</div>
						</td>
					</tr>
					<tr>
						<td colspan="2">
							<!-- 附件上传红外探测器。。。-->
							<!-- 缩略图容器 -->
	    					<div id='list_infraredDetector'></div>
							
						</td>
						<td  colspan="2">
							<!-- 附件上传复合探测器。。。-->
							<!-- 缩略图容器 -->
	    					<div id='list_mixtureDetector'></div>
						</td>
					</tr>
					<tr>
						<td class="leftt">燃气报警器</td>
						<td><input type="text" name="gasDetector" id="gasDetector" value="${roof.gasDetector }">
							<c:if test="${not empty requestScope.map.gasDetector }"><span class="toolTip mark-msg"data-tip="${requestScope.map.gasDetector }">
								<c:out value="${marks}"/></span>
							</c:if>
							<c:if test="${requestScope.map.gasDetector=='' }"><span class="toolTip mark-msg"data-tip="空">
								<c:out value="${marks}"/></span>
							</c:if>
							<!--燃气报警器  上传按钮 -->
	    					<div id='filePicker_gasDetector' style="display:none">上传</div>
						</td>

					</tr>
					<tr>
						<td colspan="2">
							<!-- 附件上传 燃气报警器。。。-->
							<!-- 缩略图容器 -->
	    					<div id='list_gasDetector'></div>
						</td>
						<td colspan="2"></td>
					</tr>

					
					<tr>
						<td class="leftt"><span class="style_btn"
							style="width:100px;">悬挂物</span></td>
						<td></td>
					</tr>
					<tr class="chuwujianHide weishengjianHide cantingHide">
						<td class="leftt">吊顶</td>
						<td class="weishengjianHide"><input type="text" name="ceiling" id="ceiling" value="${roof.ceiling }">
							<c:if test="${not empty requestScope.map.ceiling }"><span class="toolTip mark-msg"data-tip="${requestScope.map.ceiling }">
								<c:out value="${marks}"/></span>
							</c:if>
							<c:if test="${requestScope.map.ceiling=='' }"><span class="toolTip mark-msg"data-tip="空">
								<c:out value="${marks}"/></span>
							</c:if>
							<!--吊顶上传按钮 -->
	    					<div id='filePicker_condoleTop' style="display:none">上传</div
						</td>
						<td class="leftt weishengjianHide">晾衣杆</td>
						<td class="weishengjianHide"><input type="text" name="clothesline" id="clothesline" value="${roof.clothesline }">
							<c:if test="${not empty requestScope.map.clothesline }"><span class="toolTip mark-msg"data-tip="${requestScope.map.clothesline }">
								<c:out value="${marks}"/></span>
							</c:if>
							<c:if test="${requestScope.map.clothesline=='' }"><span class="toolTip mark-msg"data-tip="空">
								<c:out value="${marks}"/></span>
							</c:if>
							<!--晾衣杆  上传按钮 -->
	    					<div id='filePicker_clotheslinePole' style="display:none">上传</div>
						</td>
					</tr>
					<tr class="chuwujianHide cantingHide">
						<td colspan="2">
							<!-- 附件上传 吊顶。。。-->
							<!-- 缩略图容器 -->
	    					<div id='list_condoleTop'></div>
						</td>
						<td colspan="2">
							<!-- 附件上传晾衣杆。。。-->
							<!-- 缩略图容器 -->
	    					<div id='list_clotheslinePole'></div>
						</td>
					</tr>
					<tr class="chuwujianHide cantingHide">
						<td class="leftt">浴霸</td>
						<td><input type="text" name="yuba" id="yuba" value="${roof.yuba }">
							<c:if test="${not empty requestScope.map.yuba }"><span class="toolTip mark-msg"data-tip="${requestScope.map.yuba }">
								<c:out value="${marks}"/></span>
							</c:if>
							<c:if test="${requestScope.map.yuba=='' }"><span class="toolTip mark-msg"data-tip="空">
								<c:out value="${marks}"/></span>
							</c:if>
							<!--浴霸上传按钮 -->
	    					<div id='filePicker_bathBully' style="display:none">上传</div
						</td>
						<td class="leftt">排风扇</td>
						<td><input type="text" name="ventilator" id="ventilator"  value="${roof.ventilator }">
							<c:if test="${not empty requestScope.map.ventilator }"><span class="toolTip mark-msg"data-tip="${requestScope.map.ventilator }">
								<c:out value="${marks}"/></span>
							</c:if>
							<c:if test="${requestScope.map.ventilator=='' }"><span class="toolTip mark-msg"data-tip="空">
								<c:out value="${marks}"/></span>
							</c:if>
							<!--排风扇  上传按钮 -->
	    					<div id='filePicker_fan' style="display:none">上传</div>
						</td>
					</tr>
					<tr class="chuwujianHide cantingHide">
						<td colspan="2">
							<!-- 附件上传浴霸。。。-->
							<!-- 缩略图容器 -->
	    					<div id='list_bathBully'></div>
						</td>
						<td colspan="2">
							<!-- 附件上传排风扇。。。-->
							<!-- 缩略图容器 -->
	    					<div id='list_fan'></div>
						</td>
					</tr>
					<tr>
						<td class="leftt">灯池</td>
						<td><input type="text" name="lampPool" id="lampPool" value="${roof.lampPool }">
							<c:if test="${not empty requestScope.map.lampPool }"><span class="toolTip mark-msg"data-tip="${requestScope.map.lampPool }">
								<c:out value="${marks}"/></span>
							</c:if>
							<c:if test="${requestScope.map.lampPool=='' }"><span class="toolTip mark-msg"data-tip="空">
								<c:out value="${marks}"/></span>
							</c:if>
							<!--灯池  上传按钮 -->
	    					<div id='filePicker_lampPool' style="display:none">上传</div>
						</td>
						
					</tr>
					<tr>
						<td colspan="2">
							<!-- 附件上传 灯池。。。-->
							<!-- 缩略图容器 -->
	    					<div id='list_lampPool'></div>
						</td>
						<td colspan="2"></td>
					</tr>
				</table>
			</div>
			<input name="proofreadId" id="entityId_id" value="${id}" hidden="hidden"/>
			<input type="hidden" id="apId" name="apId" value="${requestScope.apId }"/>
			<c:if test="${requestScope.notPassExamine}">
				<!-- 修改时添加变更说明 -->
				<div style="margin:10px;" id="approvalRemark">
					审批意见<textarea rows="3" name="approvalRemark"style="width:70%"></textarea><span style="color:red;">*</span>
				</div>
				<div style="width:100%;text-align:center; padding-top:0px">
					<button class="btn btn-danger radius my-btn"
						onclick="save(0)" type="button">同意</button>
					<button class="btn btn-default radius"
						onclick="save(1)" type="button">拒绝</button>
				</div>
			</c:if>
		</div>
		<!-- main end  -->
	</form>
	<!--contentt end  -->
</body>
<script type="text/javascript">
	function hideButton(){
		//隐藏按钮
		$("#decorationProofAddForm #btn_div2").hide();
		$("#decorationProofAddForm #btn_div1").hide();
		$("#decorationProofAddForm").find("input").attr("readonly", true);
		$("#decorationProofAddForm").find(".addbtn,select").attr("disabled", true);
		//禁止点击上传按钮
		$("#decorationProofAddForm div[id^='filePicker']").unbind("click").click(function(){
			return false;
		}).hide();
	}
	
	//展示附件
	function getFiles() {
		var proofId = '${id}';
		getFileListByFlag(proofId, "装修验收顶-照明",2, "#list_illumination",roofImgRemove, imgPlus);
		getFileListByFlag(proofId, "装修验收顶-新出风口",2, "#list_windExit",roofImgRemove, imgPlus);
		getFileListByFlag(proofId, "装修验收顶-回风口",2, "#list_returnWindExit",roofImgRemove, imgPlus);
		getFileListByFlag(proofId, "装修验收顶-烟雾探测器",2, "#list_smogDetector",roofImgRemove, imgPlus);
		getFileListByFlag(proofId, "装修验收顶-温度探测器",2, "#list_tempDetector",roofImgRemove, imgPlus);
		getFileListByFlag(proofId, "装修验收顶-红外探测器",2, "#list_infraredDetector",roofImgRemove, imgPlus);
		getFileListByFlag(proofId, "装修验收顶-复合探测器",2, "#list_mixtureDetector",roofImgRemove, imgPlus);
		getFileListByFlag(proofId, "装修验收顶-燃气报警器",2, "#list_gasDetector",roofImgRemove, imgPlus);
		getFileListByFlag(proofId, "装修验收顶-喷淋",2, "#list_spray",roofImgRemove, imgPlus);
		getFileListByFlag(proofId, "装修验收顶-装饰材料",2, "#list_decorateMaterials",roofImgRemove, imgPlus);
		getFileListByFlag(proofId, "装修验收顶-灯池",2, "#list_lampPool",roofImgRemove, imgPlus);
		getFileListByFlag(proofId, "装修验收顶-吊顶",2, "#list_condoleTop",roofImgRemove, imgPlus);
		getFileListByFlag(proofId, "装修验收顶-晾衣杆",2, "#list_clotheslinePole",roofImgRemove, imgPlus);
		getFileListByFlag(proofId, "装修验收顶-排风口",2, "#list_airOutlet",roofImgRemove, imgPlus);
		getFileListByFlag(proofId, "装修验收顶-浴霸",2, "#list_bathBully",roofImgRemove, imgPlus);
		getFileListByFlag(proofId, "装修验收顶-排风扇",2, "#list_fan",roofImgRemove, imgPlus);
		<c:if test="${requestScope.notPassExamine}"> 
		//编辑新加的图片数据
		var fileCas=${requestScope.caList};
		if(fileCas.length > 0){
			var illumination = "";//装修验收顶-照明
			var windExit = "";//装修验收顶-新出风口
			var returnWindExit = "";//装修验收顶-回风口
			var smogDetector = "";//装修验收顶-烟雾探测器
			var tempDetector = "";//装修验收顶-温度探测器
			var infraredDetector = "";//装修验收顶-红外探测器
			var mixtureDetector = "";//装修验收顶-复合探测器
			var gasDetector = "";//装修验收顶-燃气报警器
			var spray = "";//装修验收顶-喷淋
			var decorateMaterials = "";//装修验收顶-装饰材料
			var lampPool = "";//装修验收顶-灯池
			var condoleTop = "";//装修验收顶-吊顶
			var clotheslinePole = "";//装修验收顶-晾衣杆
			var airOutlet = "";//装修验收顶-排风口
			var bathBully = "";//装修验收顶-浴霸
			var fan = "";//装修验收顶-排风扇
			for(var i=0;i<fileCas.length;i++){
				if(fileCas[i].articleId == "装修验收顶-照明"){
					illumination += (","+fileCas[i].accessoryCAId);
				}else if(fileCas[i].articleId == "装修验收顶-新出风口"){
					windExit += (","+ fileCas[i].accessoryCAId);
				}else if(fileCas[i].articleId == "装修验收顶-回风口"){
					returnWindExit += (","+ fileCas[i].accessoryCAId);
				}else if(fileCas[i].articleId == "装修验收顶-烟雾探测器"){
					smogDetector += (","+ fileCas[i].accessoryCAId);
				}else if(fileCas[i].articleId == "装修验收顶-温度探测器"){
					tempDetector += (","+ fileCas[i].accessoryCAId);
				}else if(fileCas[i].articleId == "装修验收顶-红外探测器"){
					infraredDetector += (","+fileCas[i].accessoryCAId);
				}else if(fileCas[i].articleId == "装修验收顶-复合探测器"){
					mixtureDetector += (","+ fileCas[i].accessoryCAId);
				}else if(fileCas[i].articleId == "装修验收顶-燃气报警器"){
					gasDetector += (","+ fileCas[i].accessoryCAId);
				}else if(fileCas[i].articleId == "装修验收顶-喷淋"){
					spray += (","+ fileCas[i].accessoryCAId);
				}else if(fileCas[i].articleId == "装修验收顶-装饰材料"){
					decorateMaterials += (","+ fileCas[i].accessoryCAId);
				}else if(fileCas[i].articleId == "装修验收顶-灯池"){
					lampPool += (","+ fileCas[i].accessoryCAId);
				}else if(fileCas[i].articleId == "装修验收顶-吊顶"){
					condoleTop += (","+ fileCas[i].accessoryCAId);
				}else if(fileCas[i].articleId == "装修验收顶-晾衣杆"){
					clotheslinePole += (","+ fileCas[i].accessoryCAId);
				}else if(fileCas[i].articleId == "装修验收顶-排风口"){
					airOutlet += (","+ fileCas[i].accessoryCAId);
				}else if(fileCas[i].articleId == "装修验收顶-浴霸"){
					bathBully += (","+ fileCas[i].accessoryCAId);
				}else if(fileCas[i].articleId == "装修验收顶-排风扇"){
					fan += (","+ fileCas[i].accessoryCAId);
				}
			}
			if(illumination != ""){
				getFileTempList(illumination.substring(1),"#list_illumination", roofImgRemove, imgPlus);
			}
			if(windExit != ""){
				getFileTempList(windExit.substring(1), "#list_windExit", roofImgRemove, imgPlus);
			}
			if(returnWindExit != ""){
				getFileTempList(returnWindExit.substring(1),"#list_returnWindExit", roofImgRemove, imgPlus);
			}
			if(smogDetector != ""){
				getFileTempList(smogDetector.substring(1),"#list_smogDetector", roofImgRemove, imgPlus);
			}
			if(tempDetector != ""){
				getFileTempList(tempDetector.substring(1),"#list_tempDetector", roofImgRemove, imgPlus);
			}
			if(infraredDetector != ""){
				getFileTempList(infraredDetector.substring(1),"#list_infraredDetector", roofImgRemove, imgPlus);
			}
			if(mixtureDetector != ""){
				getFileTempList(mixtureDetector.substring(1), "#list_mixtureDetector", roofImgRemove, imgPlus);
			}
			if(gasDetector != ""){
				getFileTempList(gasDetector.substring(1),"#list_gasDetector", roofImgRemove, imgPlus);
			}
			if(spray != ""){
				getFileTempList(spray.substring(1),"#list_spray", roofImgRemove, imgPlus);
			}
			if(decorateMaterials != ""){
				getFileTempList(decorateMaterials.substring(1),"#list_decorateMaterials", roofImgRemove, imgPlus);
			}
			if(lampPool != ""){
				getFileTempList(lampPool.substring(1),"#list_lampPool", roofImgRemove, imgPlus);
			}
			if(condoleTop != ""){
				getFileTempList(condoleTop.substring(1),"#list_condoleTop", roofImgRemove, imgPlus);
			}
			if(clotheslinePole != ""){
				getFileTempList(clotheslinePole.substring(1),"#list_clotheslinePole", roofImgRemove, imgPlus);
			}
			if(airOutlet != ""){
				getFileTempList(airOutlet.substring(1),"#list_airOutlet", roofImgRemove, imgPlus);
			}
			if(bathBully != ""){
				getFileTempList(bathBully.substring(1),"#list_bathBully", roofImgRemove, imgPlus);
			}
			if(fan != ""){
				getFileTempList(fan.substring(1),"#list_fan", roofImgRemove, imgPlus);
			}
		}
		</c:if>
	}
	
	//图片删除事件
	function roofImgRemove(id){
		layer.confirm('删除该图片？',{
				title:'警告',
				icon:0,
				shade:[0.1, '#fff']
			},function(){
				roofArray.push(id);
				//删除指定缩略图
				$("#"+id).remove();
				layer.close(layer.index);
			});
	}
	
	//本页面图片放大通用方法,同时隐藏上传按钮与图片删除按钮
	function imgPlus(data){
		$.each(data,function(i,v){
			PostbirdImgGlass.init({
		    	domSelector:"img",
		    	animation:true,
		    	//height:'80%',
		    	myDocument:window.parent.parent.parent
			});
		});
	}
</script>
</html>